﻿using System;

public class MyClass
{
    [Obsolete("Don't use oldMethod, use NewMethod instead",true)]
    static void oldMethod()
    {
        Console.WriteLine("It is the old method");
    }
    static void NewMethod()
    {
        Console.WriteLine("It is the new method"); 
    }
    public static void Main()
    {
        oldMethod();
    }
}